﻿		<form id="form${entity.moduleUpperFirstChar}${entity.entityName}Create" method="post" class="form-x form-tips radius-big">
			#foreach($col in $entity.keys)
			<div class="form-group">
				<div class="label">
					<label>${col.fieldCN}</label>
				</div>
				<div class="field">
					<input type="text" class="input" name="${col.fieldName}" placeholder="${col.fieldCN}"
						data-validate="required:必填,length#<=50:长度不多于50个字符"/>
				</div>
			</div>
			#end
			#foreach($col in $entity.columns)
			<div class="form-group">
				<div class="label">
					<label>${col.fieldCN}</label>
				</div>
				<div class="field">
					<input type="text" class="input" name="${col.fieldName}" placeholder="请输入${col.fieldCN}"/>
				</div>
			</div>
			#end
			#foreach ($r in $entity.relationsM21)
			<div class="form-group">
				<div class="label">
					<label>${r.sourceFieldCN}</label>
				</div>
				<div class="field">
					<div class="input-group">
						<input type="hidden" name="${r.sourceFieldName}${r.target.keys.get(0).fieldNameUpperFirstChar}" />
						<input type="text" class="input" name="${r.sourceFieldName}${r.target.columns.get(0).fieldNameUpperFirstChar}" readonly />
						<span class="addbtn"><button type="button" class="button" id="btn${entity.moduleUpperFirstChar}${entity.entityName}${r.sourceFieldNameUpperFirstChar}Select">选择</button></span>
					</div>
				</div>
			</div>
			#end
			#foreach ($r in $entity.relationsM2M)
			<div class="form-group">
				<div class="label">
					<label>${r.sourceFieldCN}</label>
				</div>
				<div class="field">
					<div class="input-group">
						<input type="hidden" name="${r.sourceFieldName}${r.target.keys.get(0).fieldNameUpperFirstChar}" />
						<input type="text" class="input" name="${r.sourceFieldName}${r.target.columns.get(0).fieldNameUpperFirstChar}" readonly />
						<span class="addbtn"><button type="button" class="button" id="btn${entity.moduleUpperFirstChar}${entity.entityName}${r.sourceFieldNameUpperFirstChar}Select">选择</button></span>
					</div>
				</div>
			</div>
			#end
		</form>
		<hr class="bg-gray"/>
		<div class="form-button">
			<button type="button" class="button bg-main" id="btn${entity.moduleUpperFirstChar}${entity.entityName}CreateFormSubmit">提交</button>
			<button type="button" class="button bg-yellow" id="btn${entity.moduleUpperFirstChar}${entity.entityName}CreateFormCancel">取消</button>
		</div>
		<div th:include="support :: show()" />